import request from '@/utils/request'
// 获取机构人员
export function queryUserList(query) {
  return request({
    url: '/fxfz/suser/queryUsersByOrg',
    method: 'get',
    params: query
  })
}

// 获取机构树
export function treeSelectDept(orgId) {
  return request({
    url: '/fxfz/sOrg/getOrgById?orgId='+orgId,
    method: 'get',
  })
}

export function treeAllSelectDept() {
  return request({
    url: '/fxfz/sOrg/listOrgTree?orgId=0',
    method: 'get',
  })
}